package com.hqhy.like.stock.service;

import com.hqhy.like.common.pojo.vo.PageData;
import com.hqhy.like.stock.pojo.param.StockSearchParam;
import com.hqhy.like.stock.pojo.param.StockOutAddParam;
import com.hqhy.like.stock.pojo.param.StockOutUpdateParam;
import com.hqhy.like.stock.pojo.vo.StockOutListItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IStockOutService {

    int insert(StockOutAddParam stockOutAddParam);

    int deleteById(Long id);

    int updateById(StockOutUpdateParam stockOutUpdateParam);

    PageData<StockOutListItemVO> list(Integer pageNum, Integer size);

    PageData<StockOutListItemVO> listForSearch(StockSearchParam stockInSearchParam);

    List<StockOutListItemVO> listForExport(List<Long> ids);

    StockOutListItemVO getStockOutById(Long id);
}
